<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
	<h:head>
		<title>JBoss-Esb-Adaptative - Admin Console</title>
		<h:outputStylesheet library="css" name="layout.css" />
		<link rel="icon" type="image/png" href="#{facesContext.externalContext.requestContextPath}/resources/images/favicon.png" />
		<link rel="apple-touch-icon" href="#{facesContext.externalContext.requestContextPath}/resources/images/favicon.png" />
	</h:head>
	<h:body>
		<div class="container">
			<!-- Start header -->
			<div class="header">
				<div style="float: left">
					<span class="headerText">
						<h:graphicImage id="image" alt="Logo" library="images" name="logo.png" height="36"/>
						JBoss-Esb-Adaptative Admin Console
					</span>
				</div>
				<div class="login">
                	Welcome #{loginController.username} [<a href="#{facesContext.externalContext.requestContextPath}/logout.xhtml" id="logoutLink">Logout</a>]
        		</div>
			</div>
			<!-- Start content -->
			<div class="content-layout">
				<h:form id="form-layout">
					<p:growl id="msg" autoUpdate="true" />
					<div class="sidebar-left">
					    <p:panelMenu style="width:300px">
					        <p:submenu label="#{applicationController.hostName}">
					        	<p:menuitem value="Home" url="/pages/home/home.xhtml" icon="ui-icon-home"/>
					            <p:submenu label="Virtual Services" icon="ui-icon-extlink">
					            		<p:menuitem value="Services" url="../services/serviceadm.xhtml" icon="ui-icon-home" />
					                    <p:menuitem value="Metadata" url="../services/servicemetaadm.xhtml" icon="ui-icon-document" />
					                    <p:menuitem value="Equivalents" url="../services/serviceequiv.xhtml" icon="ui-icon-arrowthick-1-s" />
					                    <p:menuitem value="AdpFlow" url="../services/serviceadpflow.xhtml" icon="ui-icon-wrench" />				
					                    <p:menuitem value="Hist AdpFlow" url="../services/serviceadpHistflow.xhtml" icon="ui-icon-wrench" />			               
					            </p:submenu>
					             <p:submenu label="Adp-Server" icon="ui-icon-extlink">
					            		<p:menuitem value="Services Requirements" url="../server/adpServiceRequirements.xhtml" icon="ui-icon-gear" />	
					            		<p:menuitem value="Monitor Properties" url="../server/adpMonitorProperties.xhtml" icon="ui-icon-gear" />
					            		<p:menuitem value="Monitor Mechanism" url="../server/adpMonitorMechanism.xhtml" icon="ui-icon-gear" />
					            		<p:menuitem value="Config Properties" url="../server/adpConfigProperties.xhtml" icon="ui-icon-gear" />				            						                    			               
					            </p:submenu>
					             <p:submenu label="Adp-Engine-Monitor" icon="ui-icon-extlink">
					            		<p:menuitem value="Adp Requirements" url="../server/motorAdpRequirements.xhtml" icon="ui-icon-gear" />	
					            		<p:menuitem value="Monitor Events" url="../server/motorMonitoredEvents.xhtml" icon="ui-icon-gear" />
					            		<p:menuitem value="Adp Strategies" url="../server/motorAdpStrategies.xhtml" icon="ui-icon-gear" />					            					            						                    			               
					            </p:submenu>
					        </p:submenu>
					    </p:panelMenu>
					</div>
					<div class="content">
						<ui:insert name="contentLayout">Content</ui:insert>
					</div>
				</h:form>
				<h:form id="form-footer" prependId="false" enctype="multipart/form-data">
					<div class="content-footer">
						<ui:insert name="contentFotter">Footer Content</ui:insert>
					</div>
				</h:form>	
				
				
				<div class="otherContent-footer">
					<ui:insert name="otherContentFotter">Footer Content</ui:insert>
				</div>
				
				
			</div>
			<!-- Start footer -->
			<div class="footer">
				<div class="footerText">
					JBoss-Esb-Adaptative - Admin Console 1.0 SNAPSHOT - Powered by <a href="http://jboss.org/embjopr/" title="Embedded Jopr">Proyecto de Grado 2012</a>
       				<br />
       				© 2012-2012 INCO.  All rights reserved.  JBoss ESB Adaptative is a registered.
   				</div>
 			</div>
		</div>
	</h:body>
</html>